package com.springboot.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/test", method = { RequestMethod.GET, RequestMethod.POST })
public class TestController {

    @RequestMapping("/hello")
    private String saveHello(){
        return "hello.html";
    }

    @RequestMapping("/hello1")
    private String dynamic(){
        return "hello1";
    }

    @RequestMapping("/tojsp")
    private String tojsp(){
        return "hello2";
    }

}
